<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="查询条件" namespace="payFeeBatch"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入批次编号','payFeeBatch')"
                                       v-model="payFeeBatchInfo.conditions.batchId" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="payFeeBatchInfo.conditions.state">
                                <option selected disabled value="">{{vc.i18n('请选择状态','payFeeBatch')}}</option>
                                <option value="2006001">
                                    <div>{{vc.i18n('正常','payFeeBatch')}}</div>
                                </option>
                                <option value="2007001">{{vc.i18n('申请取消','payFeeBatch')}}</option>
                                <option value="2008001">{{vc.i18n('审核通过','payFeeBatch')}}</option>
                                <option value="2009001">{{vc.i18n('审核失败','payFeeBatch')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写创建员工','payFeeBatch')"
                                       v-model="payFeeBatchInfo.conditions.createUserName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryPayFeeBatchMethod()">
                                <i class="fa fa-search"></i>
                                <span><vc:i18n name="查询" namespace="payFeeBatch"></vc:i18n></span>
                            </button>
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetPayFeeBatchMethod()">
                                <i class="fa fa-repeat"></i>
                                <span><vc:i18n name="重置" namespace="payFeeBatch"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="取消费用" namespace="payFeeBatch"></vc:i18n></span>
                    </h5>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <span><vc:i18n name="批次号" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="员工" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="时间" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="取消原因" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="审核状态" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="审核意见" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="payFeeBatch"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="payFee in payFeeBatchInfo.payFeeBatchs">
                            <td class="text-center">{{payFee.batchId}}</td>
                            <td class="text-center">{{payFee.createUserName}}</td>
                            <td class="text-center">{{payFee.createTime}}</td>
                            <td class="text-center">{{payFee.remark || '无'}}</td>
                            <td class="text-center">{{payFee.stateName}}</td>
                            <td class="text-center">{{payFee.msg}}</td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs" v-if="payFee.state == 2006001"
                                            v-on:click="_openApply(payFee)">{{vc.i18n('申请取消','payFeeBatch')}}
                                    </button>
                                    <button class="btn-white btn btn-xs" v-if="payFee.state == 2007001"
                                            v-on:click="_openPayFeeBatchAuditModel(payFee)">
                                        <span><vc:i18n name="审核" namespace="payFeeBatch"></vc:i18n></span>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="9">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/applyDeleteFeeBatch" callBackListener="payFeeBatch" callBackFunction="notifyAuditInfo">
    </vc:create>
    <vc:create path="common/audit" callBackListener="payFeeBatch" callBackFunction="notifyAuditInfo"></vc:create>
</div>
